﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index3.aspx.cs" Inherits="UI.index" %>
<%@ Import Namespace="Model" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title><%=newinfo.name %></title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link rel="stylesheet" href="/css/common.css" />
    <script src="/js/jquery.min.js"></script>
    <script src="/layer/layer.js"></script>
    <script src="/js/script.js"></script>
    <script src="/js/slider.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="topmenu">
        <div class="menu">
            <div class="logo"><a href="/index.aspx"><img src="/img/logo.png" border="0" height="60"/></a></div>
            <div class="title"><div class="name">国内领军</div><div class="phone">影视制作品牌</div></div>
            <div class="nav"><a href="/index.aspx" class="mulu">首页</a><a href="/productcenter.aspx" class="mulu">视频</a><a href="/imgcenter.aspx" class="mulu">图册</a><a href="/news.aspx" class="mulu">最新资讯</a><a href="/about.aspx" class="mulu">关于我们</a></div>
        </div>
    </div>
    <div id="banner_tabs" class="flexslider">
	    <ul class="slides">
            <%
            foreach(AdInfo info in adlist){ %>
		    <li>
			    <a title="<%=info.name%>" target="_blank" href="<%=info.link%>" onclick="clicks(<%=info.id%>)">
				    <img width="1920" height="480" alt="" style="background: url(<%=info.img%>) no-repeat center;" src="/img/alpha.png" border="0">
			    </a>
		    </li>
            <%}%>
	    </ul>
	    <ul class="flex-direction-nav">
		    <li><a class="flex-prev" href="javascript:;">Previous</a></li>
		    <li><a class="flex-next" href="javascript:;">Next</a></li>
	    </ul>
	    <ol id="bannerCtrl" class="flex-control-nav flex-control-paging">
            <%for (int i = 1; i <= adlist.Count;i++ )
                { %>
		    <li <%=(i==1)?"class='active'":"" %> ><a><%=i %></a></li>
            <%} %>
	    </ol>
    </div>
    <div class="panel">
    <div class="video">
        <a href="productcenter.aspx"><div class="item"><img src="/img/a1.jpg"/><div class="txt">精彩视频</div><div class="small">这里是副标题</div></div></a>
        <a href="imgcenter.aspx"><div class="item" style="margin-left:0.5%;"><img src="/img/a2.jpg"/><div class="txt">精美画册</div><div class="small">这里是副标题</div></div></a>
        <a href="news.aspx"><div class="item" style="margin-left:0.5%;"><img src="/img/a3.png"/><div class="txt">最新资讯</div><div class="small">这里是副标题</div></div></a>
    </div>
    </div>
    <div class="panel hidden">
    <div class="video" style="height:430px;">
        <div class="title">最新资讯</div>
        <div class="list">
            <div class="news">
                <%
                int count3 = 0;
                foreach (NewsInfo info in newslist)
                {
                    if (count3 < 10)
                    {
                %>
                <div class="line"><div class="title"><a href="/news/newsinfo-<%=info.id %>.html"><%=info.name%></a></div><div class="date"><%=info.createdate.ToString("MM-dd")%></div></div>
                <%
                    }
                count3++;
                }%>
            </div>
            <div class="news" style="margin-left:20px; display:inline;">
                <%
                count3 = 0;
                foreach (NewsInfo info in newslist)
                {
                    if (count3 >= 10)
                    {
                %>
                <div class="line"><div class="title"><a href="/news/newsinfo-<%=info.id %>.html"><%=info.name%></a></div><div class="date"><%=info.createdate.ToString("MM-dd")%></div></div>
                <%
                    }
                count3++;
                }%>
            </div>
        </div>

    </div>
    </div>
    <div class="footer" style="width:100%;">
        <div class="copyright">© 2014-2016 &nbsp; 元格文化 &nbsp; <a href="http://www.miitbeian.gov.cn/" target="_blank">豫ICP备14009580号-4</a> &nbsp; </div>
        <div class="link">
            <ul>
                <li style="border:0px;"><a href="#">元格文化</a></li>
                <li><a href="#">元格文化</a></li>
                <li><a href="#">元格文化</a></li>
                <li><a href="#">元格文化</a></li>
                <li><a href="#">元格文化</a></li>
                <li><a href="#">元格文化</a></li>
            </ul>
        </div>
        <div class="copyright" style="width:520px;">公司：郑州元格文化传播有限公司 &nbsp;&nbsp; 地址：中国•郑州花园路东风路往北-鑫苑路6号</div>
    </div>
    </form>
    <script type="text/javascript">
        $(function () {
            var bannerSlider = new Slider($('#banner_tabs'), {
                time: 5000,
                delay: 400,
                event: 'hover',
                auto: true,
                mode: 'fade',
                controller: $('#bannerCtrl'),
                activeControllerCls: 'active'
            });
            $('#banner_tabs .flex-prev').click(function () {
                bannerSlider.prev()
            });
            $('#banner_tabs .flex-next').click(function () {
                bannerSlider.next()
            });
        });
        function clicks(id) {
            var data = {};
            data.act = "Click_Ad";
            data.id = id;
            Ajax.Post("/system/tools/Admin.ashx", data, function (r) {
            });
        };

</script>

</body>
</html>
